package lab02.test20;
import  java.util.Scanner;
public class Test20 {

   public static void main(String[] args) {

              int i;

            System.out.println("请输入字符串");

               Scanner sc=new Scanner(System.in);

        String name=sc.nextLine();

        for (i=0;i<name.length();i++){

               if(name.charAt(i)<'z'&name.charAt(i)>'A')

                        System.out.print(name.charAt(i));

            else

                continue;



                    }

            }

}
